﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 社团
{
    internal class sqlcon
    {

        string sqlstring1 = "Data Source=(local);Initial Catalog=社团成员信息管理系统;User ID=Admin;Password=1111";
        string sqlstring2 = "Data Source=(local);Initial Catalog=社团成员信息管理系统;User ID=user;Password=1111";

    public SqlConnection connect1()
        {
            SqlConnection conn = new SqlConnection(sqlstring1);
            conn.Open();
            return conn;
        }
        public SqlConnection connect2()
        {
            SqlConnection conn = new SqlConnection(sqlstring2);
            conn.Open();
            return conn;
        }

    }
}
